package com.ruoyi.welcome.service.impl;

import com.ruoyi.welcome.mapper.YyySysUserRoleMapper;
import com.ruoyi.welcome.service.YyySysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class YyySysUserRoleServiceImpl implements YyySysUserRoleService {

    @Autowired
    private YyySysUserRoleMapper sysUserRoleMapper;

    @Override
    public int getDoctorCount() {
        return sysUserRoleMapper.countDoctorByRoleId();
    }

    @Override
    public int getUserCount() {
        return sysUserRoleMapper.countUserByRoleId();
    }
}